package com.oneboot.bbsdemo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName tb_post_comment
 */
@TableName(value ="tb_post_comment")
@Data
public class PostComment implements Serializable {
    /**
     * 主键id
     */
    @TableId(value = "comment_id", type = IdType.AUTO)
    private Long comment_id;

    /**
     * 关联的帖子主键
     */
    @TableField(value = "post_id")
    private Long post_id;

    /**
     * 评论者id
     */
    @TableField(value = "comment_user_id")
    private Long comment_user_id;

    /**
     * 评论内容
     */
    @TableField(value = "comment_body")
    private String comment_body;

    /**
     * 所回复的上一级评论的userId
     */
    @TableField(value = "parent_comment_user_id")
    private Long parent_comment_user_id;

    /**
     * 评论时间
     */
    @TableField(value = "comment_create_time")
    private Date comment_create_time;

    /**
     * 是否删除 0-未删除 1-已删除
     */
    @TableField(value = "is_deleted")
    private Integer is_deleted;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}